package com.zzx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzx.domain.Manager;
import com.zzx.domain.Vo.AddUserVo;
import com.zzx.domain.Vo.GetUserVo;
import com.zzx.domain.tv.UpdateUser;
import com.zzx.domain.Vo.UserStateVo;
import com.zzx.domain.tv.AddUser;
import com.zzx.util.ResponseResult;

/**
 * 管理员表(Manager)表服务接口
 *
 * @author makejava
 * @since 2022-07-31 13:51:21
 */
public interface ManagerService extends IService<Manager> {

    ResponseResult<Manager> login(Manager manager);

    ResponseResult<Manager> logout();

    ResponseResult<GetUserVo> getUser(Integer id);

    ResponseResult<Object> getUsers(String query, Integer pagenum, Integer pagesize);

    ResponseResult<UserStateVo> setState(Integer uid, Boolean type);

    ResponseResult AddUser(AddUser addUser);

    ResponseResult DeleteUser(Integer id);

    ResponseResult UpdateUser(Integer id,UpdateUser updateUser);

    ResponseResult setRole(Integer id, AddUserVo userVo);
}

